const mysql = require('mysql')
const {
    createConnection
} = require('net')


const connection = mysql.createConnection({
    host: 'localHost',
    user: 'root',
    password: 'a945271134',
    database: 'luminous'
})
const query = {
    name:'韩信',
    content:'哈哈哈哈哈'
}
connection.connect()

const sql = 'delete from message_copy where id = 7'

connection.query(sql,[query.name,query.content] ,function (error, result) {
    console.log(result)
    connection.end()
})